package com.byzh.singleton;

public enum FileParsers {
    WORD_FILEPARSER, XML_FILEPARSER;
    private FileParser wordFileParser;
    private FileParser xmlFileParser;

    FileParsers() {
        wordFileParser = new FileParserWord();
        xmlFileParser = new FileParserXml();
    }

    public FileParser getInstanceOfWord() {
        return wordFileParser;
    }

    public FileParser getInstanceOfXml() {
        return xmlFileParser;
    }
}
